Skip to main content
Version: 8.6.9.2

SRRiskGroupAllocation

V8 Message Definiton

METADATA

AttributeValue
Topic3695-order-allocation
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT,INSERT
MLink EndpointMLink-Order

Table Definition

FieldTypeKeyDefault ValueComment
riskGroupIdCHAR(19)PRI'0000-0000-0000-0000'all orders sharing this riskGroupId share a common set of risk counters
omniAccntVARCHAR(16)PRI''omnibus accnt SR accnt
omniCFirmVARCHAR(16)PRI''SR client firm
tradeDateDATE'1900-01-01'trading date this instruction applies to
allocationRuleenum - AllocationRule'None'fragment sizing Hamilton largest remainder the default
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification
FragmentsListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
riskGroupId1
omniAccnt2
omniCFirm3

JSON Block (FragmentsList)

FieldTypeComment
fragAccntenum - fragAccnttarget SR alloc accnt
fragCFirmenum - fragCFirmSR client firm
allocFractionenum - allocFractiontarget share of fills fractions sum to 10

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRTrade`.`MsgSRRiskGroupAllocation`
WHERE
/* Replace with a CHAR(19) */
`riskGroupId` = 'Example_riskGroupId'
AND
/* Replace with a VARCHAR(16) */
`omniAccnt` = 'Example_omniAccnt'
AND
/* Replace with a VARCHAR(16) */
`omniCFirm` = 'Example_omniCFirm';

INSERT TABLE EXAMPLE QUERY

INSERT INTO `SRTrade`.`MsgSRRiskGroupAllocation`(
/* Replace with a CHAR(19) */
`riskGroupId`,
/* Replace with a VARCHAR(16) */
`omniAccnt`,
/* Replace with a VARCHAR(16) */
`omniCFirm`,
/* Replace with a DATE */
`tradeDate`,
/* Replace with a ENUM('None','Hamilton','LargestWins') */
`allocationRule`,
/* Replace with a DATETIME(6) */
`timestamp`,
/* Replace with a JSON */
`FragmentsList`
)
VALUES(
'Example_riskGroupId',
'Example_omniAccnt',
'Example_omniCFirm',
'2022-01-01',
'None',
'2022-01-01 12:34:56.000000',
'{"key": "value"}'
);

Doc Columns Query

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRRiskGroupAllocation' ORDER BY ordinal_position ASC;